@import "./variables.scss";

.main-layout {
  min-height: 100vh;
}

// Fix sidebar position
.sidebar {
  position: fixed;
  height: 100vh;
  z-index: 1000;
  overflow: auto;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 10;
  box-shadow: $shadow-md;
}

.logo {
  height: 56px;
  display: flex;
  align-items: center;
  padding-left: $spacing-6;
  color: white;
  font-size: $text-lg;
  font-weight: $font-semibold;
}

.logo-icon {
  font-size: 20px;
  margin-right: $spacing-2;
}

// Adjust content layout
.site-layout {
  margin-left: 220px;
  transition: margin-left 0.2s;

  .ant-layout-sider-collapsed + & {
    margin-left: 80px;
  }
}

// Enhance header styling
.site-header {
  padding: 0;
  background: white;
  height: 56px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 900;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  padding-left: $spacing-4;
}

.header-right {
  display: flex;
  align-items: center;
  gap: $spacing-4;
  padding-right: $spacing-4;
}

.trigger-button {
  font-size: $text-base;
}

.search-input {
  width: 200px;
  border-radius: $radius-md;
}

.search-icon {
  color: $text-tertiary;
}

.header-button {
  color: $text-secondary;
}

.user-dropdown {
  display: flex;
  align-items: center;
  gap: $spacing-2;
  cursor: pointer;
}

.username {
  font-size: $text-sm;
}

.site-content {
  padding: $spacing-4;
  min-height: calc(100vh - 56px - 40px);
}

.site-footer {
  text-align: center;
  padding: $spacing-2 0;
  font-size: $text-xs;
  color: $text-tertiary;
  height: 40px;
  border-top: 1px solid $border;
}

// Add styles for the search results dropdown
.search-results-dropdown {
  position: absolute;
  top: 40px;
  left: 0;
  width: 400px;
  max-height: 500px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  background-color: white;
}

.search-result-item {
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
  
  &:hover {
    background-color: #f8fafc;
  }
}

.search-result-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.search-result-tag {
  border-radius: 12px;
  border: none;
  font-size: 11px;
  padding: 0 8px;
}

.search-result-title {
  font-size: 13px;
}

.search-result-description {
  font-size: 12px;
  color: #64748b;
}
